import request from "@/utils/request";

//密码登陆
export function loginPass(data){
    return request({
        url: "/doLogin/pass",
        method: 'post',
        data
    })
}


//手机验证码登陆
export function loginCode(data){
    return request({
        url: "/doLogin/code",
        method: 'post',
        data
    })
}

//注册
export function register(data){
    return request({
        url: "/register",
        method: 'post',
        data
    })
}

//登出
export function logout(){
    return request({
        url: "/logout",
        method: 'post'
    })
}


